<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增供货验收货物')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-acceptancegoods-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购单位验收合同表ID：</label>
                <div class="col-sm-8">
                    <input name="acceptanceContractId" class="form-control" type="hidden" th:value="${shenbaoId}">
                    <input name="attribute1" class="form-control" type="text" th:value="${shenbao}" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">品目：</label>
                <div class="col-sm-8">
                    <input name="items" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">单价：</label>
                <div class="col-sm-8">
                    <input name="price" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数量：</label>
                <div class="col-sm-8">
                    <input name="number" class="form-control" type="number">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额：</label>
                <div class="col-sm-8">
                    <input name="amount" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">质量状况：</label>
                <div class="col-sm-8">
                    <input name="equality" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">型号及参数：</label>
                <div class="col-sm-8">
                    <input name="models" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/acceptancegoods"
        $("#form-acceptancegoods-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-acceptancegoods-add').serialize());
            }
        }
    </script>
</body>
</html>